<?php
require_once 'Smarty/Smarty.class.php';

class CommonSmarty extends Smarty
{

	function CommonSmarty() {
		$this->setSmartyDirs();
		$this->assign('required_sign', '<span class="requiredSign">*</span>');
	}
	
	function setSmartyDirs() {
		$this->template_dir = APP_TMPL_DIR;
        $this->compile_dir = APP_CACHE_DIR . 'smarty/templates_c';
        $this->config_dir = APP_CACHE_DIR . 'smarty/configs';
        $this->cache_dir = APP_CACHE_DIR . 'smarty/cache';
		//$this->plugins_dir = APP_ROOT_DIR . 'Smarty/internals';
	}
	
	function setTemplateDir() {
		
	}
}
?>